package com.zp.self.module.level_5_设计模式.结构型模式.Ⅱ_适配器模式.对象适配;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/6/28 21:26
 * @description ：
 */
public class SDAdapterTF implements SDCard{
    private  TFCard tFCard;
    public SDAdapterTF(TFCard tFCard) {
        this.tFCard = tFCard;
    }

    @Override
    public String readSD() {
        return tFCard.readTF();
    }

    @Override
    public void writeSD(String msg) {
        tFCard.writeTF(msg);
    }
}
